-- GENERATED SPELL FOR [Worg] --


function spell0_1765(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1765', 596, 1)
end

function spell1_1765(pUnit, Event) --@Furious Howl,Self--
pUnit:FullCastSpellOnTarget(24604,pUnit)
pUnit:RegisterEvent('Sorts_1765', 20000, 1)
end

function Sorts_1765(pUnit, Event)
local choix_sorts_1765 = math.random(0, 1)
if choix_sorts_1765 == 0 then
pUnit:RegisterEvent('spell0_1765', 1, 1)
end
if choix_sorts_1765 == 1 then
pUnit:RegisterEvent('spell1_1765', 1, 1)
end
end

function mob1765_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1765', math.random(1500, 3000), 1)
end

function mob1765_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1765_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1765_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1765, 1, 'mob1765_Action')
RegisterUnitEvent(1765, 2, 'mob1765_Leave')
RegisterUnitEvent(1765, 3, 'mob1765_Kill')
RegisterUnitEvent(1765, 4, 'mob1765_Die')
